toggle menu
Core
0.5.1
js
switch theme
search in API
Core
/
io.telereso.kmp.core
/
[js]Tasks
Tasks
js
object
Tasks
Members
Functions
async
Link copied to clipboard
js
fun
<
ResultT
>
Task
<
ResultT
>
.
async
(
)
:
Promise
<
ResultT
>
create
Link copied to clipboard
js
fun
<
ResultT
>
create
(
action
:
(
)
->
ResultT
)
:
Task
<
ResultT
>
fun
<
ResultT
>
create
(
config
:
TaskConfig
,
action
:
(
)
->
ResultT
)
:
Task
<
ResultT
>
from
Link copied to clipboard
js
fun
<
ResultT
>
from
(
action
:
Promise
<
ResultT
>
)
:
Task
<
ResultT
>
from
Boolean
Link copied to clipboard
js
fun
fromBoolean
(
action
:
Promise
<
Boolean
>
)
:
Task
<
Boolean
>
from
Number
Link copied to clipboard
js
fun
fromNumber
(
action
:
Promise
<
Int
>
)
:
Task
<
Int
>
from
String
Link copied to clipboard
js
fun
fromString
(
action
:
Promise
<
String
>
)
:
Task
<
String
>
from
Void
Link copied to clipboard
js
fun
fromVoid
(
action
:
Promise
<
Unit
>
)
:
Task
<
Unit
>